package com.freeter.modules.gjs.service;

import com.freeter.modules.gjs.entity.DamageReport;
import java.util.List;
import java.util.Map;

public interface DamageReportService {
    List<DamageReport> getAllDamageReports();
    DamageReport getDamageReportById(Long id);
    DamageReport getDamageReportByReportNo(String reportNo);
    List<DamageReport> getDamageReportsByUserId(Long userId);
    List<DamageReport> getDamageReportsByItemCode(String itemCode);
    List<DamageReport> getDamageReportsBySiteCode(String siteCode);
    List<DamageReport> getDamageReportsByStatus(String status);
    List<DamageReport> getDamageReportsByDamageType(String damageType);
    DamageReport createDamageReport(DamageReport damageReport);
    DamageReport updateDamageReport(Long id, DamageReport damageReport);
    boolean deleteDamageReport(Long id);
    boolean deleteDamageReportByReportNo(String reportNo);
    List<DamageReport> getDamageReportsByCondition(String name, Integer state);
    boolean reportDemage(Map<String, Object> req) throws Exception;
} 